﻿<%@ Page Title="" Language="C#" MasterPageFile="~/LTR/MlyLtrMaster.Master" AutoEventWireup="true" CodeBehind="DisqualifiedMaterial.aspx.cs" Inherits="MLY.LTR.DisqualifiedMaterial" %>

<%@ Register Assembly="DevExpress.Web.v11.1.Linq, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>

<%@ Register assembly="DevExpress.Data.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" 
namespace="DevExpress.Data" tagprefix="dx" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
  Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel"
  TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxRoundPanel"
  TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxLoadingPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.1.Export, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView.Export" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="titleHolder" runat="server">
    <title>
        <asp:Literal ID="TitleLiteral" Text='<%$ Dict:Titles.DisqualifiedMaterial %>' runat="server"></asp:Literal>
    </title>
    <link href="/Style/General_Style_v9.css" rel="stylesheet" type="text/css" />
    <link href="/Style/ReportsStylesheet.css" rel="stylesheet" type="text/css" />
   
    <script src="../../TableSorter/jquery-latest.js" type="text/javascript"></script>
    <script src="../../TableSorter/jquery.tablesorter.js" type="text/javascript"></script>   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="TitleLabel" runat="server" Text="<%$ Dict:Titles.DisqualifiedMaterial %>" CssClass="TitleStyle floater" ></asp:Label>
    <br /><br />
     <dx:ASPxGridView ID="DisqualifiedMaterialGridView" runat="server" 
        DataSourceID="DisqualifiedMaterialDataSource" 
        AutoGenerateColumns="False" 
        KeyFieldName="WorkOrderId"
        Width="100%"
        EnableCallBacks="False"
        SettingsPager-RenderMode="Lightweight"
        Settings-ShowVerticalScrollBar="false"
        EnableTheming="False"
        OnRowCommand="CancelDisqualify"
          >
        <SettingsBehavior AllowFocusedRow="True" ColumnResizeMode="NextColumn" AutoFilterRowInputDelay="2500"   />
        <SettingsEditing Mode="PopupEditForm" />
        <Settings ShowFilterRow="True" ShowGroupPanel="True" ShowHorizontalScrollBar="True"
         ShowHeaderFilterButton="true" ShowFilterRowMenu="True" />
        <Columns>
            <dx:GridViewDataTextColumn FieldName="ContractorOrganizationName" 
            Caption="<%$ Dict:adminDefault.Organizations %>">
            <Settings AllowAutoFilterTextInputTimer="False" />
            <HeaderStyle Wrap="True" />
            <CellStyle Wrap="False">
            </CellStyle>
            <HeaderStyle Wrap="True" />
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="CustomerOrganizationName" Caption="<%$ Dict:adminDefault.Organizations %>"><Settings AllowAutoFilterTextInputTimer="False" />
            <HeaderStyle Wrap="True" />
            <CellStyle Wrap="False">
            </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="ContractorLotNumber" Width="70" Caption="<%$ Dict:ClienteditWoForm.ContractorLotNumber %>"><Settings AllowAutoFilterTextInputTimer="False" />
            <HeaderStyle Wrap="True" />
            <CellStyle Wrap="False">
            </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="SplitId" Width="70" Caption="<%$ Dict:InventoryGrid.SplitIdColumn  %>"><Settings AllowAutoFilterTextInputTimer="False" />
            <HeaderStyle Wrap="True" />
            <CellStyle Wrap="False">
            </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataDateColumn FieldName="SendDate" Width="70"  Caption="<%$ Dict:InventoryGrid.SendDateColumn %>"><Settings AllowAutoFilterTextInputTimer="False" />
            <HeaderStyle Wrap="True" />
            <CellStyle Wrap="False">
            </CellStyle>
            </dx:GridViewDataDateColumn>
            
            <dx:GridViewDataDateColumn FieldName="RequestedDelivaryDate" Width="70" Caption="<%$ Dict:ClienteditWoForm.RequestedDelivaryDate %>"><Settings AllowAutoFilterTextInputTimer="False" />
            <HeaderStyle Wrap="True" />
            <CellStyle Wrap="False">
            </CellStyle>
            </dx:GridViewDataDateColumn>
            <dx:GridViewDataDateColumn FieldName="originalActualDeliveryDate" Width="70" Caption="<%$ Dict:InventoryGrid.ActualDelivaryDateColumn %>"><Settings AllowAutoFilterTextInputTimer="False" />
            <HeaderStyle Wrap="True" />
            <CellStyle Wrap="False">
            </CellStyle>
            </dx:GridViewDataDateColumn>
            <dx:GridViewDataTextColumn FieldName="Quantity" Width="60"  Caption="<%$ Dict:InventoryGrid.QuantityColumn %>" PropertiesTextEdit-DisplayFormatString="f0"><Settings AllowAutoFilterTextInputTimer="False" />
            <HeaderStyle Wrap="True" />
            <CellStyle Wrap="False">
            </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="ProductDescription" Width="100" Caption="<%$ Dict:InventoryGrid.ProductDescriptionColumn %>"><Settings AllowAutoFilterTextInputTimer="False" />
            <HeaderStyle Wrap="True" />
            <CellStyle Wrap="False">
            </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="CustomerCatalougeCode" Caption="<%$ Dict:ClienteditWoForm.CustomerCatalougeCode %>"><Settings AllowAutoFilterTextInputTimer="False" />
            <HeaderStyle Wrap="True" />
            <CellStyle Wrap="False">
            </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="Reasons" Width="120" Caption="<%$ Dict:reportsParams.DisqualifyReasons %>"><Settings AllowAutoFilterTextInputTimer="False" />
            <HeaderStyle Wrap="True" />
            <CellStyle Wrap="False">
            </CellStyle>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataDateColumn FieldName="disqualifyDate" Width="70" Caption="<%$ Dict:InventoryGrid.disqualifyDate %>"><Settings AllowAutoFilterTextInputTimer="False" />
            <HeaderStyle Wrap="True" />
            <CellStyle Wrap="False">
            </CellStyle>
            </dx:GridViewDataDateColumn>
            <dx:GridViewDataTextColumn>
            <DataItemTemplate>
                <asp:LinkButton ID="UndoDisqualifyLinlButton" runat="server" CommandName="undo" CommandArgument='<%# Eval("WorkOrderId") %>'
                     Text="<%$ Dict:General.UndoDisqualify %>" Visible='<%# Eval("CanDisqualify") %>' ></asp:LinkButton>
            </DataItemTemplate>
            <Settings AllowAutoFilterTextInputTimer="False" />
            <HeaderStyle Wrap="False" />
            <CellStyle Wrap="False">
            </CellStyle>
            
            </dx:GridViewDataTextColumn>
            
        </Columns>
        </dx:ASPxGridView>
     <asp:SqlDataSource ID="DisqualifiedMaterialDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:MLYConnectionString %>"
      SelectCommand="SCCOver_GetDisqualifiedMaterial" SelectCommandType="StoredProcedure" >

     </asp:SqlDataSource>
    
</asp:Content>

